<template>
  <!-- 面包屑导航区 -->
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item>{{one}}</el-breadcrumb-item>
    <el-breadcrumb-item>{{two}}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>
export default {
  name:'Breadcrumb',
  data() {
    return {
      one: '',
      two: '',
    }
  },
  mounted() {
    this.$bus.$on('breadcrumb', (c) => {
      console.log("test111")
      this.one = c.one
      this.two = c.two
    })
  },
  beforeDestroy() {
    this.$bus.$off('breadcrumb')
  }
}
</script>

<style>
</style>